package org.jaaksi.kottlindemo.model

open class Person {
  var name: String? = null
  var age: Int? = null
  var id: String? = null

  // 定义解构声明
  //按照参数个数，必须在component后面加上1234
  operator fun component1() = name
  operator fun component2() = age
  operator fun component3() = id

  fun say() {

  }

  override fun toString(): String {
    return "Person(name=$name, age=$age, id=$id)"
  }


}
